import Vue from 'vue'
import Vuex from 'vuex'
import app from './modules/app'
import dict from './modules/dict'
import user from './modules/user'
import tagsView from './modules/tagsView'
import permission from './modules/permission'
import settings from './modules/settings'
import getters from './getters'
import  $dataRoomStore  from '@gcpaas/data-room-ui'

console.log('app module:', app);
console.log('dict module:', dict);
console.log('user module:', user);
console.log('tagsView module:', tagsView);
console.log('permission module:', permission);
console.log('settings module:', settings);
console.log('bigScreen module:', $dataRoomStore);
console.log('getters:', getters);

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    dict,
    user,
    tagsView,
    permission,
    settings,
     // 注册大屏设计器的store
     bigScreen: $dataRoomStore
  },
  getters
})

export default store
